package com.device.grant.service.impl;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.device.grant.dao.IDeviceDao;
import com.device.grant.pojo.IDevice;
import com.device.grant.service.IDeviceService;
import com.device.grant.utils.ColumnCompator;

@Service("iDeviceService")
public class IDeviceServiceImpl implements IDeviceService {

	@Autowired
	private IDeviceDao	iDeviceDao;

	public List<IDevice> getIDevices(Integer page, Integer rows, Map<String, Object> params, List<String> blearParams,
			Map<String, ColumnCompator> compators, String orderBy) {
		return iDeviceDao.getIDevices(page, rows, params, blearParams, compators, orderBy);
	}

	public Integer getQueryCount(Map<String, Object> params, List<String> blearParams, Map<String, ColumnCompator> compators) {
		return iDeviceDao.getQueryCount(params, blearParams, compators);
	}

	public List<IDevice> queryIDeviceByIds(Set<Integer> ids) {
		return iDeviceDao.queryIDeviceByIds(ids);
	}

}
